import 'package:flutter/services.dart';

class MusicPlayer{
  static const channel = "music_channel";

  static Future<void> lead(String path) async {
    await MethodChannel(channel).invokeMethod("lead", {"path" : path});
  }

  static Future<void> play() async {
    await MethodChannel(channel).invokeMethod("play");
  }

  static Future<void> stop() async {
    await MethodChannel(channel).invokeMethod("stop");
  }


}